package com.example.questionnaires.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.questionnaires.entity.User;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    User selectById(Long id);
    User selectByUsername(String username);
    List<User> selectAll();
    int insert(User user);
    int update(User user);
    int deleteById(Long id);
    int updateStatus(Long id, Integer status);
} 